import request from '../utils/request';
  
 

  
  // export function gettagList(params) {
  //   return request({
  //     url: '/api/tag/list',
  //     method: 'GET',
  //     params
  //   });
  // }
  export function getTagList(params) {
    return request({
      url: '/api/tag/tagList',
      method: 'GET',
      params
    });
  }
 
  export function addTag(data) {
    console.log(data, 'data')
    return request({
      url: '/api/tag/addList',
      method: 'POST',
      data
    });
  }
  

  export function deleteTag(params) {
    return request({
      url: '/api/tag/delete',
      method: 'DELETE',
      params
    });
  }
  export function updateTag(data) {
    return request({
      url: '/api/tag/update',
      method: 'POST',
      data
    });
  }
  
  export function getDetail(params) {
    return request({
      url: '/api/tag/tagDetail',
      method: 'GET',
      params
    });
  }